package file;

import java.io.File;

public class ListFilesDemo {
    public static void main(String[] args) {
        File file = new File(".");
        if (file.isDirectory()){
            File[] subs = file.listFiles();
            for (File f : subs) {
                System.out.println(f.getName());
            }
        }
    }
}
